import request from '@/utils/request'
/**
 * 代收点设置
 * @see http://ps.jibachuan.com/platform/swagger-ui.html#!/wx-address-controller
 */
const addressMod = '/wx-address'

/**
 * [listCollect 代收点列表]
 */
export function getCollectList(params) {
    return request({
        url: `${addressMod}/listCollect`,
        method: 'get',
        params
    })
}

/**
 * [addCollect 新增代收点]
 */
export function addCollect(data) {
    return request({
        url: `${addressMod}/addCollect`,
        method: 'post',
        data
    })
}

/**
 * [batchDelete 删除代收点]
 */
export function deleteCollect(data) {
    return request({
        url: `${addressMod}/batchDelete`,
        method: 'post',
        data
    })
}

/**
 * [update 修改代收点]
 */
export function updateCollect(data) {
    return request({
        url: `${addressMod}/update`,
        method: 'post',
        data
    })
}